using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Manager_Enemy : MonoBehaviour
{
    public GameObject Enemy1_1;
    public GameObject Enemy1_2;
    public GameObject Enemy1_3;
    public GameObject Enemy2;
    public GameObject Enemy3;
    public GameObject Enemy4;
    public GameObject Enemy5;
    public GameObject Enemy6;
    public GameObject Enemy7;

    public int num_Enemy;
    public GameObject EnemyCome_Eff;

    public GameObject[] TPdate;
    public int num_date;
    // Start is called before the first frame update
    void Start()
    {
        num_Enemy = 6;
        num_date = 0;
    }

    // Update is called once per frame
    void Update()
    {   
        if(num_Enemy==0)
        {
            if(TPdate[num_date]!=null)
            TPdate[num_date].SetActive(true);
        }
    }
    void CreatEnemy(GameObject enemy,Vector3 Eenemytransforma)
    {
        GameObject E =Instantiate(enemy);
        GameObject F = Instantiate(EnemyCome_Eff);
        E.transform.position = Eenemytransforma;
        F.transform.position = Eenemytransforma;
        Destroy(F, 1.5f);
    }
            
}
